package com.edu.study.base.wordrelation.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 单词归属关系对象 edu_word_relation
 * 
 * @author zw
 * @date 2022-04-12
 */
@TableName("edu_word_relation")
@Data
public class WordRelation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 单词id */
    @Excel(name = "单词id")
    private String wordId;

    /** 单词归属id */
    @Excel(name = "单词归属id")
    private Long belongId;

    @TableField(exist = false)
    private String[] wordIds;

    @TableField(exist = false)
    private String word;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("wordId", getWordId())
            .append("belongId", getBelongId())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .toString();
    }
}
